package com.xx.happychatboot.serve.user.domain.entity;

import io.mybatis.provider.Entity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户申请表
 * </p>
 *
 * @author xiaoXuan
 * @since 2025-01-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity.Table("user_apply")
public class UserApply implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Entity.Column(id = true, remark = "主键", updatable = false, insertable = false)
    private Long id;

    /**
     * 申请人uid
     */
    @Entity.Column("uid")
    private Long uid;

    /**
     * 申请类型 1加好友
     */
    @Entity.Column("type")
    private Integer type;

    /**
     * 接收人uid
     */
    @Entity.Column("target_id")
    private Long targetId;

    /**
     * 申请信息
     */
    @Entity.Column("msg")
    private String msg;

    /**
     * 申请状态 1待审批 2同意
     */
    @Entity.Column("status")
    private Integer status;

    /**
     * 阅读状态 1未读 2已读
     */
    @Entity.Column("read_status")
    private Integer readStatus;

    /**
     * 创建时间
     */
    @Entity.Column("create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @Entity.Column("update_time")
    private Date updateTime;


}
